package com.six.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.six.core.entity.CheckShop;
import com.six.core.entity.Shop;
import com.six.core.vo.Result;
import com.six.core.vo.ShopAndUserVo;
import com.six.shop.vo.SearchCheckShop;
import com.six.shop.vo.SearchShop;

import java.util.List;

/**
 * ClassName:ShopService
 * Description:
 * date:2023/2/27 10:09
 *
 * @since JDK 1.8
 */
public interface ShopService extends IService<Shop> {
    Result findAll(SearchShop shop, Integer currentPage, Integer pageSize);

    Result findAllShop();

    //修改状态为休息
    Result UpdateStateTrue(Integer shopid);
    //修改状态为营业
    Result UpdateStateStart(Integer shopid);
    //修改状态为停业
    Result UpdateStateFales(Shop shop);

    Integer findAllByNum();

    Integer getShopId(Integer userid);

    Result insertShop(Shop shop);

    List<ShopAndUserVo> findShopAndPrice();

    /** 零时添加一个*/
    Integer add(Shop shop);


}
